package org.lessnote.server.provider;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.lboot.core.auth.AuthService;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class NoteAuthServiceImpl implements AuthService {
    @Override
    public Boolean isLogin() {
        return AuthService.super.isLogin();
    }

    @Override
    public Boolean isAdmin() {
        return AuthService.super.isAdmin();
    }

    @Override
    public List<String> getRoles() {
        return AuthService.super.getRoles();
    }

    @Override
    public List<String> getPerms() {
        return AuthService.super.getPerms();
    }

    @Override
    public Boolean hasRole(String roleKey) {
        return AuthService.super.hasRole(roleKey);
    }

    @Override
    public Boolean hasPerm(String perm) {
        return AuthService.super.hasPerm(perm);
    }

    @Override
    public String getToken() {
        return AuthService.super.getToken();
    }

    @Override
    public Boolean doLogin(String id) {
        return AuthService.super.doLogin(id);
    }

    @Override
    public Boolean doLogout(String id) {
        return AuthService.super.doLogout(id);
    }

    @Override
    public void doBan(Object id, Integer hour) {
        AuthService.super.doBan(id, hour);
    }

    @Override
    public Boolean isBan(Object id) {
        return AuthService.super.isBan(id);
    }

    @Override
    public String getUid() {
        return "kindear@foxmail.com";
    }
}
